<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="java.sql.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login Bean</title>
</head>
<body>
<jsp:useBean id="db" scope="request" class="bean.LoginBean">
  <jsp:setProperty name="db" property="username" value='<%=request.getParameter("txt_username")%>' />
  <jsp:setProperty name="db" property="password" value='<%=request.getParameter("txt_password")%>' />
</jsp:useBean>
<jsp:forward page="userlogin">
  <jsp:param name="username" value="<%=db.getUsername()%>" />
  <jsp:param name="password" value="<%=db.getPassword()%>" />
</jsp:forward> 
</body>
</html>